@import "./theme.scss";
@import "./mixin.scss";
@import "./transition.scss";
//@import './element-ui.scss';
@import "./sidebar.scss";
@import "./btn.scss";

body {
  user-select: none;
  height: 100vh;
  margin: 0px !important;
  overflow: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  //font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  // font-family: Tahoma,Helvetica,Arial,'Microsoft Yahei','SJSONG',sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  // font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.warn-content {
  background: rgba(66, 185, 131, 0.1);
  border-radius: 2px;
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: 0.05rem;

  a {
    color: #42b983;
    font-weight: 600;
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}
.fixed-header {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 11;
  width: calc(100% - #{$sideBarWidth});
  transition: width 0.28s;
}
.el-message__content {
  display: inline-block;
}
.el-notification__group {
  display: inline;
  .el-notification__title {
    display: inline-block\9;
    margin-top: -5px\9;
  }
  .el-notification__content {
    margin-left: 38px\9;
    p {
      display: inline-block;
    }
  }
}

.chart-scrollbar-wrapper {
  flex-grow: 1;
  padding: 0 20px;
  height: 0px;
  position: relative;

  .chart-scrollbar {
    padding-top: 10px;
    // background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    height: 100%;
  }
  &.extra {
    &::before {
      content: "";
      z-index: 10;
      position: absolute;
      background-color: white;
      filter: blur(45px);
      height: 50px;
      left: 0px;
      right: 0px;
    }
  }
  
}
.chart-scrollbar .el-scrollbar__wrap {
  overflow-x: hidden !important;
  // padding-top: 10px;

  // width: 100%;
}

.talk-dialog {
  .dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    color: white;
    background-image: linear-gradient(to right, #39b397, #239d81, #3fb89c);
    & > .dialog-img {
      display: flex;
      align-items: center;
      img {
        width: 30px;
      }
      & > span {
        margin-left: 5px;
        font-weight: bold;
      }
    }
  }
  .el-dialog {
    min-width: auto;
    overflow: hidden;
    border-radius: 6px;
    width: 80% !important;
  }
  .el-dialog__header {
    display: none;
  }
  .el-dialog__body {
    padding: 0px !important;
  }
  .dialog-content {
    color: white;
    background-color: #b1e1d6;
    padding: 20px;
  }
}

.control-wrapper {
  user-select: none;
}

.preview-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-header {
  height: 40vh;
  flex-shrink: 0;
}
.chart-wrapper {
  position: absolute;
  overflow: hidden;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-size: 100% auto;
  background-image: url(../assets/bg.png);
}

.introduce-item {
  width: 100%;
  display: inline-flex;
  margin-right: 12px;
  flex-direction: column;
}

.introduce {
  background-color: #ffffffca;
  padding: 16px 12px;
  border-radius: 8px 8px 8px 0;
  margin-right: 40%;
  margin-left: 30px;
  & > div:first-child {
    line-height: 28px;
    font-size: 18px;
    margin-bottom: 4px;
  }
  & > div:not(:first-child) {
    line-height: 28px;
    font-size: 16px;
    margin-right: 10px;
    color: rgb(34, 68, 218);
  }
}

.msg-list {
  margin: 0 0 12px 0;
  padding: 0;
  //   overflow-y: auto;
  //   overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.msg-item {
  flex-shrink: 0;
  width: 100%;
  display: inline-flex;
  margin-bottom: 12px;
  .send {
    background-color: rgba(28, 151, 123, 0.85);
    cursor: pointer;
    margin-left: auto;
    padding: 10px 12px;
    border-radius: 18px;
    min-height: 45px;
    margin-right: 30px;
    color: white;
    max-width: 80%;
    line-height: 1.4;
    font-size: 16px;
    text-align: start;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    // white-space: pre-wrap;
  }
  .receive {
    background-color: rgba(250, 250, 250, 0.85);
    padding: 10px;
    border-radius: 18px;
    min-height: 45px;
    margin-right: 20%;
    line-height: 1.4;
    font-size: 16px;
    text-align: start;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    // white-space: pre-wrap;
    margin-left: 30px;
  }
  .point {
    width: 10px;
  }
  .msg {
    img {
      width: 52px;
    }
  }
}

.control-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 90px;
  z-index: 999;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  border-top-left-radius: 20%;
  border-top-right-radius: 20%;
  position: relative;
  &.active {
    &::after {
      display: block;
      content: "";
      width: 200%;
      border-radius: 50%;
      height: 200%;
      top: -50%;
      left: -50%;
      background-color: rgba(255, 255, 255, 0.8);
      position: absolute;
    }
  }
  .btn-tip {
    font-size: 12px;
    color: rgba(85, 85, 85, 1);
    margin-bottom: 4px;
    position: absolute;
    top: -10px;
    z-index: 10;
  }
  .voice-wrapper {
    height: 50px;
    padding: 0;
    border-radius: 30px;
    padding-left: 10px;
    padding-right: 10px;
    left: 20px;
    right: 20px;
    outline: none;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #eaf0f5;
    display: flex;
    cursor: pointer;
    align-items: center;
    position: absolute;
    z-index: 9;
    box-shadow: 0px 3px 1px rgba(204, 209, 199, 0.5);
    &.active {
      background-color: rgba(28, 151, 123, 1);
    }
    &.leave {
      background-color: rgba(216, 1, 1, 1);
    }
    .touch-voice {
      position: absolute;
      top: 0;
      right: 0;
      width: 100%;
      height: 100%;
      display: flex;

      background-color: #0072ff;
      border-radius: 10px;
      align-items: center;
      justify-content: center;
      visibility: hidden;
      color: white;
    }
    .touch {
      flex-grow: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
      user-select: none;
      font-size: 18px;
    }
  }
}

.audio-box {
  top: -9999vh;
  position: absolute;
  visibility: hidden;
}

.chart-scrollbar ::v-deep .el-scrollbar__wrap {
  overflow-x: hidden !important;
}

.start-btn {
  width: 60px;
  height: 60px;
  z-index: 999;
  cursor: pointer;
  /* background-color: white; */
  border-radius: 12px;
  padding: 8px;
  box-sizing: border-box;
  margin-right: 16px;
  /* cursor: pointer; */
  position: absolute;
  left: 0px;
  top: 0px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
  // user-select: none;
}

.start-btn:active {
  opacity: 0.9;
}

.av-media {
  font-size: 0px;
}

.whether {
  display: flex;
  margin: 6px 0;
  justify-content: space-between;
  .el-radio {
    margin: 0px;
    text-align: center;
    width: 50%;
    background-color: white;
    border-radius: 20px;
    &:first-child {
      margin-right: 20px;
    }
    .el-radio__inner {
      display: none;
    }
    .el-radio__label {
      padding-left: 0px;
    }
  }
}
.dialog-time {
  display: flex;
  margin-bottom: 15px;
  justify-content: center;
  & > span {
    display: block;
    border-radius: 50%;
    padding: 8px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    height: 40px;
    border: 1px solid #ccc;
  }
}

.tounch-btn {
  width: 100%;
  height: 100%;
  z-index: 999;
  position: absolute;
}

.touch {
  user-select: none;
}

.chart-icon {
  width: 34px;
  margin-right: 10px;
}

.chart-prospect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  bottom: 0;
  background-image: url(../assets/prospect.png);
  background-size: 100% auto;
  img {
    position: absolute;
    top: 20%;
    left: 50%;
    margin-left: -95px;
    width: 190px;
  }
}

.eig-btn {
  border-radius: 4px;
}

.interactive {
  width: 100%;
}

.infoTip {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.2);
  z-index: 1001;
  padding-left: 40px;
  &>img {
    margin-right: 5px;
    position: absolute;
    left: 3px;
    top: 1px;
    width: 40px;
  }
}

.errorTip {
  position: absolute;
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.64);
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .2);
  width: 70%;
  left: 50%;
  transform: translateX(-50%);
  top: 30%;
  border-radius: 8px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  & > img {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
  }
  & > span {
    font-weight: 400;
    margin-bottom: 30px;
  }
  .retry {
  }
}
.blank {
  height: 60px;
}

.el-message {
  background-color: #fff;
  
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .2);
  padding: 10px;
  border-color: #fff;
  border-radius: 8px;
  min-width:auto !important;
  .el-message__content {
    color: rgba(51, 51, 51, 1) ;
  }
 .el-icon-error {
  display: block;
  width: 40px;
  height: 40px;
  background-size: 40px 40px;
  background-position: center;
  background-image: url(../assets/mark.png);
  margin-right: 5px;
  &::before {
    display: none;
  }
 }
}

.eig-default-btn {
  border-color: #666;
  color: #333;
  background-color: white;
}

@media (max-width: 768px) {
  .chart-header {
    height: 30vh;
  }
  .msg-item .receive {
    margin-left: 5px;
  }
  .msg-item .send {
    margin-right: 5px;
  }
  .chart-scrollbar-wrapper {
    padding-bottom: 10px;
  }
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .el-notification__group {
    display: block;
    .el-notification__title {
      display: block;
      margin-top: 0;
    }
    .el-notification__content {
      margin-left: 0;
      display: block;
      p {
        display: block;
      }
    }
  }
  .fontSize18 .el-notification__group {
    .el-notification__content {
      width: 80%;
      p {
        word-wrap: break-word;
      }
    }
  }
}
